home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 26
/
CU Amiga Magazine's Super CD-ROM 26 (1998)(EMAP Images)(GB)[!][issue 1998-09].iso
/
CUCD
/
Utilities
/
TrueTypeLib
/
readme
< prev
next >
Wrap
Text File
|
1998-07-12
|
6KB
|
179 lines
ttf.library
Overview
ttf.library is a truetype compatible font engine for Amiga OS.
It functions in a manner compatible with the outline font engine
standard established by Commodore with the bullet.library engine
for compugraphic format fonts. This means that Amiga applications
which use normal system fonts should now be able to use truetype
format fonts.
Installation
The following files are provided to facilitate using truetype
fonts:
File Installation instructions
------------ ------------------------------------------------------
ttf.library copy to your LIBS: drawer
ttfinstall copy to your favorite tool drawer (i.e. sys:utilities)
ttflist " " " " " " (optional)
ftview " " " " " " (optional)
Usage
To use a truetype font, it must first be installed to some part
of the system FONTS: drawer. Installation is a bit different than
with the compugraphic intellifont program. First this is a CLI
program, not a workbench program. Second, the outlines are not
copied to the font directory, instead only the ".font" and ".otag"
files are created in the font directory, which reference the
outline at the same location from which it was installed. This
makes it much easier to use large font libraries directly from
CD-ROM, for example. The third major difference, fonts may be
installed to any drawer, not just a FONTS: component. (Note that
to USE the font in many programs, the drawer must be assigned
to FONTS:, but this allows you to selectively add the required
font path components as needed.)
The command line for installing a truetype font would look like
the following:
ttfinstall fontfile.ttf sys:fonts
Note that 'fontfile.ttf' is the actual file to be installed, and
'sys:fonts' can be any existing directory. In addition, a file
name pattern can be specified for 'fontfile.ttf', allowing the
installation of several fonts at once. For example:
ttfinstall cd0:funky/#?.ttf work:ttfonts
Would install all the font found in the cd0:funky drawer to the
ttfonts drawer on volume work:
Once a truetype font is installed on the fonts: path, it should
be possible to select that font from any decent font requester.
Please note that ttfinstall will OVERWRITE the .font and .otag
files if they already exist, thus installing two fonts with
the name 'CoolNewFont' will result in only one available font.
It is possible to rename both the .font and .otag files once
they have been created, so multiple fonts with the same internal
name can be used if you work at it. This will be addressed in
a future version of ttfinstall. For the time being, it is
strongly recommended that you do not insstall directly to your
primary fonts drawer, but to a separate drawer dedicated to
holding truetype fonts. For example, I have a drawer, sys:ttfonts,
that I use for permanently installed ttf's. The following assign
makes that drawer accessible to most well behaved programs:
assign fonts: sys:ttfonts add
Utilites
Two additional utilites are provided to assist in the management
of truetype fonts. These are also CLI only. Note that the
ttf.library does not have to be installed to use these tools.
ttflist works a lot like the normal system 'list' command, but
is designed to display readable names along with the file name.
Also, it will optionally provide a great deal of perhaps useful
information from a font file. The command line would look like:
ttflist [pattern] [all] [verbose] [encode]
where:
[pattern] is an optional amigados file pattern or drawer name.
by default it is "#?.(ttf|ttc)"
[all] is an optional switch to list matching drawer contents
as well. Note that the pattern specified must match the drawer
names to be searched. When all is specified the default pattern
is "#?".
[verbose] gives a lengthy, and probably ignorable, report for
each font found.
[encode] gives a verbose report and displays the results of encoding
mapping all 256 amiga characters against all encoding tables in the
font file.
(verbose and encode are mainly for the developers benefit ;)
example: ttflist cd0: all
ftview is a truetype font display program from the freetype
project test suite, with very minimal 'amigaizing'. Its command
line format is:
ftview [-g] pointsize fontfile ...
where
[-g] is an optional grey scale (smoothing) rendering. Smoothing
looks very wonderful, but is not available through ttf.library.
Also note that ftview opens on the default public screen, and
if that screen does not have sufficient available or matching
pen colors, it may look worse. The -g option uses five distinct
grey levels.
pointsize is a required argument specifying the point size to
display.
fontfile is one or more truetype font files to view.
Example: ftview 30 flyingp.ttf
While the font is displayed, options to change many rendering
characteristics are available by keystroke or standard amiga
menu selections.
Credits and Notes
The ttf.library and related programs were made possible by
the outstanding achievement known as the FreeType Project.
For more information, visit http://www.freetype.org
Also, Amish S. Dave's type1.library (which does for postscript
type1 fonts what ttf.library does for truetype) served as an
invaluable guide and model for the rather poorly documented
amiga outline font engine format.
Bugs, warnings
This software has had minimal testing. Its performance on
the development machine has been constantly monitored with
enforcer and mungwall, however, it is still unproven. Also,
it relies VERY heavily on code which I did not write, and
have not examined in great detail. (Although, I must note
that the FreeType code seems very solid!) Please use caution,
and use at your own risk.
Several feature of the bullet library standard have not yet
been implemented (rotation, shearing, width lists and various
inquiries fall into this category, as they are not required for
proper operation via the diskfont.library.) Programs expecting
to use advanced features of the bullet.library may not work
as expected with the ttf.library. FinalWriter from Softwood is
one such program. This IS being worked on.
Internationalization is very weak at this point.
Send any comments, suggestions, bug reports to:
Richard Griffith
ragriffi@sprynet.com